package club.jdiy.core.properties;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * JDiy 配置信息映射对象
 *
 * @author ziquee(子秋) QQ号:39886616 主页: http://www.jdiy.club
 * @version 20200731
 */
@SuppressWarnings("ALL")
@Component
@EnableConfigurationProperties
@ConfigurationProperties(
        prefix = "jdiy"
)
@Data
@NoArgsConstructor
public class JDiyProperties {
    private String appid = "jdiy";
    private boolean showsql = true;
    private String handlerScan = "club.jdiy";
    private String developers = "ziquee,jdiy,system";
    private JDiyJobProperties job = new JDiyJobProperties();
    private String staticDir = "classpath:/static";
    private String uploadDir = "classpath:/uploads";
    private String baseUrl;//部分内部系统，无法取到实际的访问域名，导致后台表单提交地址不正确（比如https变成了http）,添加此字段，用于手动配置固定地址，不要以/结尾
    private JDiyStoreProperties store = new JDiyStoreProperties();
    private JDiyCacheProperties cache = new JDiyCacheProperties();

}
